/*
** 3543.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Mon Sep 22 22:39:07 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/* #include "3543.h" */
#include <stdio.h>
#include <math.h>

int main()
{
     int b, w, s;

     while(scanf("%d%d", &b, &w) != EOF){
	  if (b >= w){
	       s = floor(sqrt(w + w + 1));
	       if 
	  
